package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(30);comment:用户名"`
	Password string `gorm:"type:varchar(32);comment:密码"`
}
type Role struct {
	gorm.Model
	RoleName string `gorm:"type:varchar(30);comment:角色名"`
}
type Node struct {
	gorm.Model
	NodeName string `gorm:"type:varchar(30);comment:权限名"`
}
type UserRole struct {
	gorm.Model
	Uid int `gorm:"type:int;comment:用户编号"`
	Rid int `gorm:"type:int;comment:角色编号"`
}
type RoleNode struct {
	gorm.Model
	Rid int `gorm:"type:int;comment:角色编号"`
	Nid int `gorm:"type:int;comment:权限编号"`
}
type Person struct {
	gorm.Model
	PerCode string `gorm:"type:varchar(30);comment:配送员编号"`
	PerName string `gorm:"type:varchar(30);comment:配送员姓名"`
	PerNum  int    `gorm:"type:int;comment:配送员年龄"`
}
type Order struct {
	gorm.Model
	OrderNo int `gorm:"type:int;comment:订单编号"`
	Pid     int `gorm:"type:int;comment:配送员id"`
}
type OrderList struct {
	OrderId int
	OrderNo int
	Pid     int
	PerCode string
	PerName string
	PerNum  int
}
